package com.ruoyi.mushcoin.domain;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.ruoyi.common.orm.core.domain.BaseEntityTo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.math.BigDecimal;


/**
 * TG游戏商品对象 tg_game_goods_info
 *
 * @author billy
 * 2024-10-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table(value = "tg_game_goods_info")
public class TgGameGoodsInfo extends BaseEntityTo {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 商品ID
     */
    private Long goodsId;

    /**
     * 商品类型：开通会员=1 道具=2
     */
    private Integer type;

    /**
     * 商品状态
     */
    private Integer status;

    /**
     * 标题
     */
    private String title;

    /**
     * 交易金额展示
     */
    private String usPrice;

    /**
     * 折扣
     */
    private Double discount;

    /**
     * 交易金额（USDT）
     */
    private BigDecimal price;

    /**
     * 交易数量(Star)
     */
    private Integer priceStar;

    /**
     * 商品价值(月份/币/时长)
     */
    private Long goodsValue;

    /**
     * 游戏币代码
     */
    private Integer gameCurrencyCode;

    /**
     * 交易币当前价格（USDT）
     */
    private BigDecimal coinRate;

    /**
     * 交易钱包类型：ton
     */
    private String walletType;

    /**
     * 排序
     */
    private Integer sort;


}
